package com.stg.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.stg.bean.Role;
import com.stg.dao.RoleDao;
import com.stg.service.RoleService;
@Service("roleService")
public class RoleServiceImpl implements RoleService {

	@Resource
	private RoleDao roleDao;
	
	@Override
	public void createRole(Role role) {
		
		roleDao.createRole(role);
	}

	@Override
	public long findIDByRoleName(String roleName) {
		
		return roleDao.findIDByRoleName(roleName);
	}

	@Override
	public List<Role> queryAllRole() {
		return roleDao.queryAllRole();
	}

}
